package com.zbf.dao;

import com.zbf.entity.MyUser;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Date;
import java.util.List;

/**
 * 作者: LCG
 * 日期: 2021/6/24  15:23
 * 描述: 
 * @Param 
 * @Return 
 */
public interface TestMyUserDao extends JpaRepository<MyUser,Long> {

    public Page<MyUser> findByUserNameLike(String userName, Pageable pageable);


    public List<MyUser> findByUserNameEquals(String userName);


    public List<MyUser> findByUserNameContains(String userName);
    

    public MyUser findByUserNameLikeAndIdEquals(String userName,Long id);


    public List<MyUser> findByCreateTimeGreaterThanAndCreateTimeLessThan(Date t1, Date t2);





}
